package com.house.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class Order {
    private Long id;
    private Long houseId; // 房源ID
    private Long tenantId; // 租客ID
    private Long landlordId; // 房东ID
    private LocalDateTime appointmentDate;
    private String status; // PENDING, CONFIRMED, REJECTED, UNPAID, PAID, COMPLETED
    private LocalDateTime rentalStartDate;
    private LocalDateTime rentalEndDate;
    private Integer price;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // 关联字段（非数据库字段）
    private String houseTitle; // 房源标题
    private String tenantName; // 租客用户名
    private String landlordName; // 房东用户名
}
